#!/bin/sh
# simrouter.sh

routers=$1
enlaces=$2

# Main 

if [ $# -eq 0 ]
then
  echo "Starting simrouter with default conifg files ( resources/router.config , resources/enlaces.config )"
  java -cp bin/:./lib/newThreadServices.jar Executor resources/routers.config resources/enlaces.config
  exit 0
fi

if [ $# -lt 2 ]
  then
    echo "Usage simrouter router.config enlance.config"
  else
    java -cp bin/:./lib/newThreadServices.jar Executor $routers $enlaces
fi
